home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 311 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: unrza3.dialin.rrze.uni-erlangen.de!not-for-mail
  2. From: mskuhn@unrza3.dialin.rrze.uni-erlangen.de (Markus Kuhn)
  3. Newsgroups: comp.std.c
  4. Subject: Binary Mode stdin/stdout
  5. Date: 6 Feb 1996 01:33:20 +0100
  6. Organization: Markus Kuhn, 91080 Uttenreuth, Germany
  7. Message-ID: <4f67kg$11g@cortex.dialin.rrze.uni-erlangen.de>
  8. Reply-To: mskuhn@cip.informatik.uni-erlangen.de
  9. NNTP-Posting-Host: unrza3.dialin.rrze.uni-erlangen.de
  10.  
  11. Why isn't there a standard way of allowing an ISO C program to switch
  12. the standard input and output into binary transparent mode (as with
  13. the "b" flag in fopen()/freopen() for normal files)?
  14.  
  15. Has this just been forgotten or is there a good technical reason?
  16.  
  17. The lack of a function which makes stdin/stdou binary transparent is
  18. always a pain if you port software (e.g. zcat) which can under Unix be
  19. used to pipe binary files from one program to the next to systems like
  20. MS-DOS where there is a difference between binary and text mode
  21. streams.
  22.  
  23. Markus
  24.  
  25. -- 
  26. Markus Kuhn, Computer Science student -- University of Erlangen,
  27. Internet Mail: <mskuhn@cip.informatik.uni-erlangen.de> - Germany
  28. WWW Home: <http://wwwcip.informatik.uni-erlangen.de/user/mskuhn>
  29.